/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-api
 * Create Time: 2016年2月1日 下午3:12:29
 */
package com.lenovo.lmrp.api.constant;

/**
 * @author zhangzhenga
 *
 */
public enum TicketPriority {
    
    LOW(0,"低"),
    NORMAL(1,"中"),
    HIGH(2,"高");
    
    private int priority;
    private String descr;
    
    /**
     * 
     */
    private TicketPriority(int priority,String descr) {
        this.priority = priority;
        this.descr = descr;
    }
    
    public String getDescr(){
        return this.descr;
    }
    
    public static TicketPriority get(int priority){
        for (TicketPriority tp : TicketPriority.values()) {
            if(tp.priority == priority) return tp;
        }
        return null;
    }
}
